from django.contrib import admin
from Rango.models import Category, Page ,UserProfile

# Register your models here.
class Category_Admin(admin.ModelAdmin):
    list_display = ("name", "views", "likes")
    prepopulated_fields = {'slug':('name',)}
admin.site.register(Category, Category_Admin)

class Page_Admin(admin.ModelAdmin):
    list_display = ("title", "category", "views")
admin.site.register(Page, Page_Admin)

admin.site.register(UserProfile)